package hello;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.ws.Endpoint;

@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL)
@WebService(targetNamespace = "http://services.demo.fr/mywstest", name = "AlertDispatcher", serviceName = "DemoService")
public class DemoService {
	@WebMethod(operationName = "Notify", action = "urn:Notify")
	public void Notify(@WebParam(name = "message") String a) {
		System.out.println("Message : " + a);
	}

	@WebMethod(exclude = true)
	public static void main(String[] args) {
		String endpointUri = "http://localhost:8182/";
		Endpoint.publish(endpointUri, new DemoService());
		System.out.println("Publishing JAX-WS at " + endpointUri);
	}
}

// http://localhost:8181/DemoService?wsdl

//http://wiki.objetdirect.com/wiki/index.php?title=Introduction_aux_Web_Services
//http://blogs.developpeur.org/arno/
